from pyamf.remoting.gateway.django import DjangoGateway
from DjangoSite.kburndown.service import ping, get_project_data, \
    add_unit, get_units, get_tasks_by_unit, add_task, add_task_at, edit_task,\
    finish_task, move_task, delete_task, get_tasks, move_unit, reopen_task
from DjangoSite.kburndown.data_service import *

gw = DjangoGateway \
({
  "KBurndownService.ping" : ping,
  
  "KBurndownService.getProjectData" : get_project_data,
  "KBurndownService.addUnit" : add_unit,
  "KBurndownService.getUnits" : get_units,
  "KBurndownService.moveUnit" : move_unit,
  "KBurndownService.getTasks" : get_tasks,
  "KBurndownService.getTasksByUnit" : get_tasks_by_unit,
  "KBurndownService.addTask" : add_task,
  "KBurndownService.addTaskAt" : add_task_at,
  "KBurndownService.editTask" : edit_task,
  "KBurndownService.finishTask" : finish_task,
  "KBurndownService.reopenTask" : reopen_task,
  "KBurndownService.moveTask" : move_task,
  "KBurndownService.deleteTask" : delete_task,
  
#  "KBurndownDataService.*"
})